package com.example.fms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.fms.utils.UserVo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User extends UserVo {
    //id
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    //姓名
    @TableField("name")
    private String name;

    //用户名
    @TableField("user_name")
    private String userName;

    //密码
    @TableField("password")
    private String password;

    //手机号
    @TableField("mobile")
    private String mobile;

    //性别
    @TableField("sex")
    private String sex;

    //类型
    @TableField("type")
    private String type;

    //身份证件号
    @TableField("id_number")
    private String idNumber;

    //状态
    @TableField("status")
    private Integer status;

    //邮箱
    @TableField("email")
    private String email;

}
